// filename ************ TxFifo.H ***************
// header for Pointer implementation of a FIFO  
// Jonathan W. Valvano 1/29/04

//  This example accompanies the books
//   "Embedded Microcomputer Systems: Real Time Interfacing",
//         Brooks-Cole, copyright (c) 2000,
//   "Introduction to Embedded Microcomputer Systems: 
//    Motorola 6811 and 6812 Simulation", Brooks-Cole, copyright (c) 2002

// Copyright 2004 by Jonathan W. Valvano, valvano@mail.utexas.edu 
//    You may use, edit, run or distribute this file 
//    as long as the above copyright notice remains 
   
#define ENCLIFOSIZE 3
// the number of 8 bit bytes in the Fifo
//   the FIFO is full when it has FifoSize-1 bytes 

/*-----------------------EncFifo_Put----------------------------
  Enter one character into the fifo
  Inputs: 8 bit data
  Outputs: true if data is properly saved */
// returns TRUE=1 if successful, 
// FALSE=0 if full and data not saved
void EncLifo_Put (int32_t data);  

/*-----------------------EncFifo_Get----------------------------
  Remove one character from the fifo
  Inputs: pointer to place to save 8 bit data
  Outputs: true if data is valid */
// returns TRUE=1 if successful, 
// FALSE=0 if empty and data not removed
int32_t EncLifo_Get (void);
